import Vue from 'vue'
import App from './App'

import VueCookie from 'vue-cookie' // api: https://github.com/alfhen/vue-cookie
import store from '@/store_new' // api: https://github.com/vuejs/vuex
import router from './router' // 引入路由 api:https://router.vuejs.org/zh-cn/
import Vuex from 'vuex'

import ElementUI from 'element-ui' // 引入element-ui api:http://element-cn.eleme.io/#/zh-CN/component/installation
import 'element-ui/lib/theme-chalk/index.css'
import httpRequest from '@/api/request'
import './style/index.scss' // 引入一些公共的样式

Vue.use(VueCookie)
Vue.use(Vuex)

Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$http = httpRequest // ajax请求方法
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
